package com.atguigu.user.service;

import com.atguigu.param.PageParam;
import com.atguigu.param.UserCheckParam;
import com.atguigu.param.UserLoginParam;
import com.atguigu.pojo.User;
import com.atguigu.utils.R;

/**
 * ClassName:UserService
 * Package:com.atguigu.user.service
 * Description:
 *
 * @Author 应永豪
 * @Create 2024/4/21 14:06
 * @Version 1.0
 */
public interface UserService {
    //检查账号是否可用
    R check(UserCheckParam userCheckParam);
//注册业务，参数已经校验，但是密码是明文
    R register(User user);
//登录业务，账号和密码已经校验，但是密码是明文
    R login(UserLoginParam userLoginParam);

    R listPage(PageParam param);

    R remove(Integer userId);

    R update(User user);

    R save(User user);
}
